<div class="column_center_bg1" style="float: left;">
<div class="column_center_bg2" style="float: left;">
<!-- Nếu là danh sách tin tức -->
<?php 
if ($this->type == "list")
{
	foreach ($this->arrNews as $news)
	{
?>
	<div class="news-wrapper">
		<div class="title-news">
			<a href="<?php echo $this->url->action("index", "News", array($news['categoryID'], $news['id']));?>">
				<?php echo $news['title'];?>
			</a>
		</div>
		<div class="description-news">
			<img src="<?php echo $news['avatar'];?>" width="190" height="190"/>
		<?php echo $news['header'];?>
		
		...<a href="<?php echo $this->url->action("index", "News", array($news['categoryID'], $news['id']));?>">Chi tiết.</a>
		</div>
	</div>
<?php 
	}
}
else 
{
?>
<!-- Hiển thị chi tiết tin tức -->
<div style="padding: 10px 5px 5px 10px; text-align: justify;">
	<div style="font-family: Tahoma ,Arial, Helvetica, sans-serif; line-height: 1.5; font-size: 15pt; color: #6A105A; width: 100%;">
		<?php echo $this->arrNews['title'];?>
	</div>
	<p><?php echo XPHP_Date::isTheDay($this->arrNews['date_create']) . ' - ' . $this->category;?></p>
	<div style="width: 100%; font-size: 9pt; line-height: 1.5; font-weight: bold;">
		<?php echo $this->arrNews['header'];?>
	</div>
	<?php echo $this->html->raw($this->arrNews['content']);?>
</div>
<?php 
}
?>
</div>
</div>